/*
 * @Author: your name
 * @Date: 2020-11-17 14:31:33
 * @LastEditTime: 2020-12-29 20:50:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \purchase-zhqh\src\views\home\filter.js
 */
/*
 * Filename: c:\Users\93692\Desktop\仓储管理系统\zhcg-zhqh\src\views\home\filter.js
 * Path: c:\Users\93692\Desktop\仓储管理系统\zhcg-zhqh
 * Created Date: Monday, October 26th 2020, 10:37:42 am
 * Author: chenxin
 * 工作流名称格式化
 * Copyright (c) 2020 Your Company
 */


// 
export const upcomingTaskFilter_PNAME_ = (value) => {
    if (!value) return "";
    value = value.toString();
    return value.replace("流程", "");
};

export const upcomingTaskLinkFilter = (value) => {
    let path = null;
    switch (value) {
        case "备货":
            path = "StockNoticeApplyApproval";
            break;
        case "生产领料":
            path = "ProductionMaterialsApplyApproval";
            break;
        case "基建":
            path = "InfrastructureOutputApplyApproval";
            break;
        case "其他出库":
            path = "OtherOutputApplyApproval";
            break;
        
    }
    return path;
};